package com.kemai.designmode.strategy

import com.kemai.common.utils.AppUtils
import com.kemai.designmode.entry.Fruit

/**

 *@description:使用模板
 * @author: zhaoshanshan
 * @date: 2022/10/4 8:24 上午

 */
class OnLineShoppingCart(private var products: List<Fruit>,private var discount: Discount): DiscountShoppingCart(products,discount) {
    override fun pay(money: Double) {
        AppUtils.getInstance()?.showToast("线上支付结算${money}元")
    }
}